// 通过axios做网络请求（建议使用）

import request from '../config/request'
export function getOrderList(orderStepFlag) {
  return request({
    url: '/member/seller/myOrder/getOrderList/' + orderStepFlag,
    method: 'get',
  })
}

export function cancelOrder(orderCode) {
  return request({
    url: '/member/seller/myOrder/cancelOrder?orderCode=' + orderCode,
    method: 'put',
  })
}

export function getMap() {
  return request({
    url: '/member/seller/myOrder/getMap',
    method: 'get',
  })
}

export function getOrderDetail(orderCode) {
  return request({
    url: '/member/seller/myOrder/getOrderDetail/' + orderCode,
    method: 'get',
  })
}
